package com.itheima.chapter09.io.bytestream;

import java.io.FileInputStream;
import java.io.IOException;
//字节流读数据
public class IntputDemo1 {
    public static void main(String[] args) throws IOException {
        //创建字节输入流对象
        FileInputStream fis =new FileInputStream("MyIdeaTest\\aaa\\a.txt");
        //读数据
        int read = fis.read();
        System.out.println(read);
        System.out.println((char)read);
        //释放资源
        fis.close();
    }
}
